package main

import (
	"fmt"
)

func main() {

	var aa *int

	fmt.Println(*aa)

	var a int = 10

	fmt.Printf("a is %d \n", a)
	fmt.Printf("&a is %p\n", &a)

	var p *int = &a

	fmt.Printf("p == a ? %t\n", p == &a)

	*p = 20

	fmt.Printf("a is %d \n", a)

	p = nil

	fmt.Printf("&p is %p\n", &p)

	fmt.Printf("p == a ? %t\n", p == &a)
}
